import request from '@/utils/request'

// 获取一级分类列表
export const getCategoryListService = (id) =>
  request.get('/category', {
    params: {
      id
    }
  })

//获取二级分类列表
export const getSubCategoryListService = (id) =>
  request.get('/category/sub/filter', {
    params: {
      id
    }
  })

// 获取二级分类列表的子分类
export const getSubCategorySortListService = (data) =>
  request.post('/category/goods/temporary', data)
